package com.meida.module.bus.client.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.base.entity.AbstractEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.meida.common.mybatis.annotation.TableAlias;

/**
 * 分包商
 *
 * @author flyme
 * @date 2020-10-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
//@TableName("D_SL_VENDOR")
@TableName("bus_supplier")
@TableAlias("supplier")
@ApiModel(value = "BusSupplier对象", description = "分包商")
public class BusSupplier extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "supplierId", type = IdType.ID_WORKER)
    private Long supplierId;

    @ApiModelProperty(value = "供应商名称")
//    @TableField("VENDORNAME")
    private String supplierName;

    @ApiModelProperty(value = "供应商编码")
//    @TableField("VENDORCODE")
    private String supplierCode;

}
